<template>
	<view class="page">

		<!-- <form @submit="formSubmit">

			<view class="page-block" style="margin-top: 20rpx;">
				<radio-group name="" class="radio-sex" @change="sexChange">
					<label class="radio-single">
						<radio value="1" :checked="sex === 1"/><text>男</text>
					</label>
					<label class="radio-single">
						<radio value="0" :checked="sex === 0" /><text>女</text>
					</label>
				</radio-group>
			</view>

			<button type="primary" form-type="submit" class="submitBtn">提交</button>

		</form> -->
		 <uni-fab
		            :pattern="pattern"
		            :content="content"
		            :horizontal="horizontal"
		            :vertical="vertical"
		            :direction="direction"
		            @trigger="trigger"
		        ></uni-fab>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				sex: -1
			}
		},
		methods:{
			// 获取数值
			sexChange(e) {
				console.log(e.detail.value);
			},
			
			// 提交
			formSubmit() {
				// 传递后台参数
				
				// 页面跳转
				uni.navigateBack({
					delta: 1
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.page-fill {
		width: 100%;
		height: 100%;
		position: absolute;
	}
	
	.radio-sex {
		display: flex;
		flex-direction: column;
	}
	
	.radio-single {
		padding: 20rpx 30rpx; 
	}
 </style>
